//
//  GameObject.h
//  LearningCocos
//
//  Created by hansangyong on 2014. 2. 21..
//  Copyright (c) 2014년 ainhan. All rights reserved.
//

#import "cocos2d.h"
#import "CCSprite.h"
#import "CommonProtocols.h"


@interface GameObject : CCSprite {
    BOOL isActive;
    BOOL reactsToScreenBoundaries;
    CGSize screenSize;
    GameObjectType gameObjectType;
}

@property (readwrite) BOOL isActive;
@property (readwrite) BOOL reactsToScreenBoundaries;
@property (readwrite) CGSize screenSize;
@property (readwrite) GameObjectType gameObjectType;

- (void)changeState: (CharacterStates)newState;
- (void)updateStateWithDeltaTime: (ccTime)deltaTime andListOfGameObjects: (CCArray *)listOfGameObjects;
- (CGRect)adjustedBoundingBox;
- (CCAnimation *) loadPlistForAnimationWithName: (NSString *)animationName
                                   andClassName: (NSString *)className;

@end
